package com.bjpowernode.javaweb.servlet;

import javax.servlet.*;
import java.io.IOException;

public class AServlet implements Servlet {

    public AServlet() {
        System.out.println("构造方法");
    }

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("出生");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("请求");
    }

    @Override
    public void destroy() {
        System.out.println("死亡");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public String getServletInfo() {
        return null;
    }
}
